package com.billing.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.billing.model.dao.AttendanceBeanMapper;
import com.billing.model.entity.TAttendance;
import com.billing.service.AttendanceService;

@Service
public class AttendanceServiceImpl implements AttendanceService {

	
	@Resource
	private AttendanceBeanMapper attendanceBeanMapper;
	
	public List<TAttendance> selectTAttendanceList(String name, String dept,
			Long starttime, Long endtime,String jobnumber,int organizationid, int currentPage, int pageSize) {
		return attendanceBeanMapper.selectTAttendanceList(name, dept, starttime, endtime,jobnumber,organizationid, currentPage, pageSize);
	}
	
	public int selectTAttendanceNum(String name, String dept, Long starttime,
			Long endtime,String jobnumber,int organizationid) {
		return attendanceBeanMapper.selectTAttendanceNum(name, dept, starttime, endtime,jobnumber,organizationid);
	}

	public List<TAttendance> selectTAttendanceListName(Integer id, Long starttime,
			Long endtime) {
		return attendanceBeanMapper.selectTAttendanceListName(id, starttime, endtime);
	}

	public TAttendance selectTAttendanceId(String id) {
		return attendanceBeanMapper.selectTAttendanceId(id);
	}

	public int updateTAttendance(TAttendance attendance) {
		return attendanceBeanMapper.updateTAttendance(attendance);
	}

	public int insertTAttendance(TAttendance attendance) {
		return attendanceBeanMapper.insertTAttendance(attendance);
	}

	public List<TAttendance> selectTAttendanceListIdLimit(Integer id,
			Long starttime, Long endtime) {
		return attendanceBeanMapper.selectTAttendanceListIdLimit(id, starttime, endtime);
	}

	public TAttendance selectTAttendanceById(Integer id, Long starttime,
			Long endtime) {
		return attendanceBeanMapper.selectTAttendanceById(id, starttime, endtime);
	}

	public List<TAttendance> getTAttendanceLatetimeList(Integer id,long starttime,long endtime) {
		return attendanceBeanMapper.getTAttendanceLatetimeList(id,starttime,endtime);
	}


}
